package org.openkoala.koala.deploy.tree;

import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.swt.graphics.Image;
import org.openkoala.koala.deploy.pojo.Itree;
import org.openkoala.koala.deploy.pojo.MethodTree;

public class EJBTreeLabelProvider extends LabelProvider implements
		ILabelProvider {

	public String getText(Object element) {
		Itree node = (Itree) element;
		if(node instanceof MethodTree && ((MethodTree)node).getType()!=null)return ((MethodTree)node).getType()+node.getName();
		return node.getName();
	}

	public Image getImage(Object element) {
		return null;
	}

}
